<?php

namespace app\cps\controller;

use app\BaseController;
use think\facade\Request;
use app\common\Error;
use app\common\Common;
use app\admin\service\CompanyService;

class Company extends BaseController
{
    private $service;

    public function __construct(CompanyService $service)
    {
        $this->service = $service;
    }

    // 公司下拉列表
    public function select()
    {
        $params = Request::param();
        $data = $this->service->getSelectList($params);

        return Common::success($data);
    }
}